/**
 * Created with IntelliJ IDEA.
 * User: wangjunneil@gmail.com
 * Date: 13-12-25
 * Time: 15:16
 * To change this template use File | Settings | File Templates.
 */
function createForm(url) {
    var form = document.createElement("form");
    form.method = 'POST';
    form.action = url;
    return form;
}

function createInput(name, value, form) {
    var input = document.createElement("input") ;
    input.name = name;
    input.value = value;
    form.appendChild(input);
    return
}

function submitForm(form) {
    document.body.appendChild(form) ;
    form.submit() ;
    document.body.removeChild(form) ;
}

// 留言求片
function dynamicListMessageSubmit(page) {
    var form = createForm('/page/sys/listLeaveMessage.html');
    createInput("page", page, form);
    submitForm(form);
}
